__label__NO "this pr improves the safety of using toshibacan escs in two ways:"
__label__YES ">- specifically check the vehicle's armed state and if disarmed send a shutdown command to all escs - add a pre-arm check to copter that the mot_pwm_min = , mot_pwm_max ="
__label__YES ">the second item is important because the toshibacan esc driver assumes that pwm output sent to the corresponding servo output will be in the range to when converting the pwm output to an rpm that the escs understand."
__label__NO ">in master this means that (for multicopters) the mot_pwm_min/mot_pwm_max must be set to and respectively."
__label__YES "[this is specified on the wiki]( but invariably even experienced users sometimes forget leading to a scary situation where the escs/motors spin-up (normally to a low speed) even if the vehicle is disarmed because we output when disarmed to keep regular escs from beeping."
__label__NO ">this has not yet been tested on actual escs but will be in the coming days."
__label__YES "copter locks up in flight, motors stop, crashes vehicle w/ pixhawk"
__label__NO "### bug report"
__label__YES ">there are now at least three different people with different solos running .-dev that have had arducopter crash and stop in flight."
__label__YES ">- the dataflash and telemetry end abruptly with seemingly no problem logged."
__label__NO "- the motors stop."
__label__YES "the copter falls to the ground (obviously)."
__label__YES "- there are no sounds, beeps, or indications."
__label__YES "it just stops and drops."
__label__NO "- upon repowering, everything starts up like normal."
__label__YES "- i have an incident that took place before the watchdog even existed."
__label__NO "and three more post watchdog."
__label__NO "- in the all cases, the version of copter master (.-dev) was about a month or more old from now, so probably just before and just after watchdog was implemented (for time reference)."
__label__NO ">thus far, it has not happened to anyone using the green cube."
__label__NO "and to my knowledge it hasn't happened to anyone else running any other hardware."
__label__NO "_it appears to be isolated to the old dr manufactured pixhawk for the solo_."
__label__NO ">i've put the latest master from yesterday up for users to install since i think it has some better logging."
__label__NO "and hoping some users will be willing to test it knowing their solo could still crash at anytime."
__label__NO ">this appears to be what happened back in this issue that at the time seemed like a watchdog issue."
__label__NO "as it turns out, it was the watchdog doing its job."
__label__NO (
__label__NO ">this is a video from a tablet that was screen recording at the time of the incident."
__label__YES "it shows that the video stream, wifi link, and companion computer were still powered up and running, despite the autopilot failing."
__label__NO 
__label__NO "this corresponds to log # in the pre enhanced logging zip file."
__label__NO ">**version** arducopter master .-dev"
__label__NO ">**platform** [ ] all [ ] antennatracker [x] copter [ ] plane [ ] rover [ ] submarine"
__label__NO ">**airframe type** dr solo"
__label__NO ">**hardware type** pixhawk cube that is oem on the solo."
__label__NO "but this is really no different than any other pixhawk hardware on any other vehicle."
__label__NO "vehicles with this failure as far as we know all were equipped with the solo gimbal."
__label__NO ">**logs** this first zip is different logs from _before the new enhanced logging._ one of these incidents happened with watchdog enabled."
__label__NO "the others were either before the watchdog or with it disabled."
__label__NO [solo.shutdown.logs.before.new.logging.zip](
__label__NO "> once we get logs using the new logs, i'll put them below."
__label__NO "frame params: disable watchdog for solo"
__label__NO "set `brd_options` default to zero to disable watchdog on solo with copter .-dev."
__label__NO "this is in response to until the issue is resolved."
__label__NO "this param files this pr updates are also used by the `cubesolo` and `cubegreen` build targets."
__label__YES "copter: add pre-arm check of pilot_speed_up param"
__label__NO "this is a very minor change to resolve this issue:"
__label__YES ">the argument for **not** adding this check is that we have hundreds of parameters, many of which can cause a crash if the user sets them incorrectly (i.e. pid gains of zero will also cause a crash)."
__label__YES "still, there was a real support issue where a user couldn't control their altitude so i'm adding this check."
__label__YES ">this has been checked in sitl and works as expected (i.e.values below cause a pre-arm check message to appear)."
__label__NO "copter: reject reboot request from gcs if ""auto"" esc calibration also requested"
__label__YES "this pr resolves this safety issue: in which the motors may spin if the user sets esc_calibration = (auto calibration) and then triggers a flight controller reboot from the gcs."
__label__YES "essentially we reject the reboot request so the user must disconnect and reconnect the battery."
__label__NO ">this has been tested on my trusty iris and the following messages pops-up when i tried to reboot from the gcs after also requesting the auto esc calibration."
__label__NO ![reboot-rejected](
__label__NO ">other simple tests were performed to ensure existing logic was not affected:"
__label__NO ">- requests to reboot the flight controller when esc calibration had not been requested worked normally."
__label__YES "- other types of esc calibration (auto, raise-throttle-at-startup) also worked normally"
__label__NO "rover: on completion of mission hold or loiter within auto"
__label__NO "this pr slightly changes how rover's behaves when an auto mission is completed."
__label__NO "previously the vehicle would switch out of auto to hold, loiter or acro mode (see mis_done_behave parameter) but this pr uses hold-within-auto and loiter-within-auto instead (for acro it still switches modes)."
__label__YES ">the advantage of this is that the vehicle will stay in auto mode which can impact failsafe behaviours."
__label__YES "in particular we currently suppress radio failsafes while the vehicle is in hold mode but we wouldn't want to do that if the vehicle was in hold-within-auto."
__label__NO ">this pr closes this issue:"
__label__NO ">this has been successfully tested in sitl"
__label__YES "ap_motors: allow the user to control minimum pwm time when coming out of safe_disarm"
__label__YES "`m_safe_disarm` allows you to ensure there are no pulses while disarmed."
__label__YES "depending upon the esc you have you will need a minimum time at minimum throttle to enable the esc to spin up."
__label__NO "this introduces a parameter to control the ramp up time on the motor."
__label__YES "the initial patch was done by @lthall i did the bench testing of it and had to add a patch to restore a regression around sending pulses when it shouldn't be."
__label__NO "the main change i introduced on top of what @lthall did was that when going into the shutdown state on the motors i removed the spool down time."
__label__YES "i think this is actually appropriate though as while i need a second of the motor being at a low throttle to start the motors, i really don't want or need a second of minimum throttle when stopping the motors."
__label__YES "and the act of disarming the aircraft already has the same effect of cutting the throttle output so i think this is a safe path."
__label__YES "copter: high vibration failsafe"
__label__YES "this pr adds a ""high vibration failsafe"" to copter resolving these two issues ([vibration failsafe]( [get-vert-pos-rate returns zero]("
__label__YES ">high vibration and loss of altitude control are detected if the following are true:"
__label__YES ">- ekf's velocity and position innovations are positive - ekf's vertical velocity variation >"
__label__NO ">high vibrations can be tested in sitl by doing the artificially forcing imu clipping by doing the following:"
__label__NO ">- param set ek_imu_mask - param set tune (to allow ch to control the accelerometer range) - param set tune_max - param set sim_acc_rnd - arm in loiter and takeoff to an altitude of m - param set sim_acc_rnd"
__label__YES ">at this point the vehicle will climb quickly as shown below: ![master-alt]("
__label__YES ">with this vibration failsafe the vehicle does not climb: ![vibe-failsafe-alt]("
__label__NO ">there are these known problems:"
__label__YES ">- [ ] only implemented for the ekf - [x] if the mot_thst_hover value is more than about % higher or lower than the vehicle's actual hover throttle the vehicle may be unable to descend (if the hover throttle is too high) or it may descend too quickly (if hover throttle is too low)"
__label__YES "prevents fly away in alt hold due to unstable pid"
__label__NO "many people are flying in alt hold from their first flight."
__label__YES "this presents a significant risk that unstable pid settings will cause an uncontrollable and unrecoverable fly away."
__label__YES "this pr detects the high vertical velocity error and reduces the act_mot_mix_max parameter to prioritise throttle."
__label__YES "this lets the altitude controller prevent a fly away and enables the pilot to land safely."
__label__YES "ap_toshibacan: consume and publish current, add arming check"
__label__NO "this pr adds two enhancements to our toshibacan esc support:"
__label__YES ">- consume the instantaneous current reported by the esc and calculate the total current (since boot) - log the above to the dataflash and publish to the gcs using the [esc_telemetry_xxx]( messages - add a pre-arm check that an esc is present (i.e.providing data back to the flight controller) for each motor controlled by the ap_motors library."
__label__NO ">this has been bench tested using a single esc and screen shots of the results are below:"
__label__NO ">- mp's mavlink inspector showing the current and totalcurrent for the first esc is updating ![toshibacan-esc-telem]("
__label__NO ">- dataflash log shows the esc's instantaneous current."
__label__NO "the total current is zero but this is perhaps just because the total is still very small ![toshibacan-curr-logging]("
__label__NO ">- pre-arm check that motors are missing (was testing with a quad frame) starting from motor ![toshibacan-prearm]("
__label__NO ">more testing at eams lab will be done before we merge this."
__label__NO "all feedback welcome!"
__label__YES "copter: add pre-arm failure if terrain database (srtm) fails to allocate"
__label__YES "during a recent competition we enabled terrain database (srtm) with m accuracy and scripting and found that the terrain_enable parameter silently reverted to "" after bootup."""
__label__YES "what was happening was the flight controller was running out of memory and failed to allocate enough memory for terrain."
__label__YES ">we should add a pre-arm check if the terrain database allocation fails so that the user is aware of the problem before flight."
__label__YES "if i hadn't noticed, i think the first indication of a failure would have been an immediate terrain failsafe after the takeoff when the first terrain-alt command was run."
__label__YES ">as a side note we should probably add pre-arm failure warnings if any memory allocations fail."
__label__YES "copter: refuse reboot command from gcs if esc_calibration ="
__label__YES "we have had one report of a loophole in the esc calibration procedure which can lead to the motors spinning up if the normal procedure isn't followed."
__label__YES "to recreate the motor spin-up issue do this:"
__label__NO >.
__label__NO "plug in a battery ."
__label__NO "connect and set esc_calibration = to indicate the ""auto"" esc calibration should be performed (the mp makes this convenient with a button on the initial setup / mandatory hardware / esc calibration screen ."
__label__NO "reboot the flight controller from the gcs (i.e.leave the battery plugged in)."
__label__NO "this can be most easily done from mp's action tab by setting the top-left drop-down to ""preflight_reboot_shutdown"" and then push the ""do action"" button ."
__label__YES "because the battery was not disconnected the escs will already be initialised so when the flight controller reboots and starts outputting high pwm values are part of the esc calibration the motors will start."
__label__YES ">the solution is to somehow modify the [gcs_mavlink::handle_preflight_reboot()]( function so that it refuses reboot if the esc_calibration parameter has been set to ."
__label__NO "this should force the user to reboot the flight controller by disconnecting the battery."
__label__YES "note that when we refuse to reboot we should also provide a text message to the gcs to alert the user why we've refused to reboot."
__label__NO ">below is a picture of the mp screen used to trigger the auto esc calibration ![esc-cal-steps]("
__label__YES "copter: .-dev allows forced arming in loiter without a good position estimate"
__label__YES "similar to [this issue found for rover]( we should never allow arming in autonomous modes (loiter, poshold, guided, etc) without a good position estimate even if the user sets arming_check = or does a ""forced arming""."
__label__YES "it's not safe because the vehicle cannot possibly control it's position nor will it be accepting input from the pilot (because it's an autonomous mode)."
__label__NO "ac_autotune: add check for reverse response abort."
__label__YES "this patch addresses a problem where the autotune safety features are not triggered if there is sync loss at the beginning of the twitch."
__label__YES "this can result in the aircraft moving in the opposite direction to the twitch."
__label__YES "because the twitch direction is now negative it does not trigger the over angle safety features."
__label__YES "copter: disable gcs failsafe by default"
__label__YES "this disables copter's gcs failsafe by default."
__label__YES "this change is being made in response to beta testers' reports that it has been triggering unexpectly or causing pre-arm failures (i've noticed this myself)."
__label__YES ">i think it is safe to disable the gcs failsafe by default (it was enabled by default in ..x and earlier) because nobody has been relying on it because it was not actually function."
__label__NO "it didn't do anything that the regular rc failsafe didn't already do."
__label__NO ">fyi to @pedalspaddles"
__label__NO "copter: stand-by mode for use with multiple flight controllers running in parallel"
__label__NO "standby is the ability to have multiple flight controllers working together where only one of these is the controller in command (cic)."
__label__YES "the ""ride along"" controllers can experience significant i-term build up as they may have different attitude solution compared to the cic."
__label__NO "the secondary controllers may also be placed in a more basic mode."
__label__NO "for example, during an auto mission the secondary flight controller may be held in loiter."
__label__NO ">the functionality in this pr is designed to be a minimum impact standby functionality for arducopter."
__label__NO ">the requirements of this capability are: - remove i term build up - remove integrated build up sources - not trigger crash checks, parachute, or landing detectors."
__label__YES "- ensure the aircraft will still fly effectively in stabilize, alt hold, loiter and continue to stabilize the aircraft in other modes."
__label__YES "this is to ensure the aircraft will continue to be controllable in the event that a secondary flight controller is made cic without disabling the standby state."
__label__NO ">this will be the first introductory implementation of this functionality to facilitate development in this area."
__label__YES "copter: add warning to user from vehicle and ground station when user is approaching the fence"
__label__NO "original request appeared on mission planner issues list"
__label__YES "copter: check motor thrust loss detector is identifying the problem motor correctly"
__label__NO "below is a screen shot of a user log in which an external switch has been used to turn off motor of hexa-x vehicle."
__label__YES "the rcou log makes it obvious that motor is the problem motor but the message indicates that the motor-thrust-loss-detectors thinks the problem motor is ."
__label__YES "we should check whether this is a reporting error or if the detector has an issue causing it to misidentify the problem motor."
__label__NO >![thrust-lost-check-incorrect-motor](
__label__YES "copter: vibration failsafe actions"
__label__YES "@rmackay and i were discussing a recent event of a user vehicle that misbehaved due to very high vibration levels."
__label__YES ">the initial idea would be to detect that vibration problem (constant/very high clipping) and assume a ""failsafe"" like action."
__label__NO "this would imply several actions, like switching to a baro controlled height, reducing gains, beeping an alarm pattern, message to the gcs, and perhaps going on a althold/poshold height (at rtl height perhaps)"
__label__NO "copter: disable esc calibration by default"
__label__YES "as discussed as part of [this pr's review]( we should disable the high throttle triggered esc calibration by default."
__label__YES ">although this high throttle method is convenient, it can also be dangerous because users may plug and unplug the vehicle a few times with the throttle high, wondering why it won't startup properly (because it's entering esc calibration) and then the motors can spin up."
__label__YES "copter: add pre-arm check of gcs failsafe"
__label__YES "i think we should add a pre-arm check of whether the gcs failsafe has triggered."
__label__NO "we have similar pre-arm checks for rc, battery and ekf failsafes."
__label__YES ">tbh, it's possible this may be more annoying than it is useful but without it there is some danger that the user will have triggered the gcs failsafe (perhaps the radio disconnects before takeoff) but the user doesn't notice and they end up flying without an active gcs failsafe."
__label__YES "copter: gcs failsafe option to trigger in auto"
__label__YES "copter: arming check doesn't check rc failsafe if armed from gcs"
__label__NO "this issue was first identified at droidplanner/dronekit-android#."
__label__NO "i was able to reproduce it using ac.rc, `arming_check`="
__label__NO ">turn off the rc, or disconnect the receiver from the pixhawk."
__label__NO "the gcs will report ""rc failsafe""."
__label__YES "sending the arming packet will still allow it to arm."
__label__NO "plane.: ap_scripting: correct generator bug"
__label__NO see
__label__NO ">this corrects a bug in the scripting generator to bring it inline with master."
__label__YES "it is possible that this bug can cause lockups if the the affected bindings are used."
__label__NO ">the line in master"
__label__NO "copter-.: ap_scripting: correct generator bug"
__label__NO "this corrects a bug in the scripting generator to bring it inline with master."
__label__YES "it is possible that this bug can cause lockups if the the affected bindings are used."
__label__NO ">the line in master"
__label__YES "plane: fix vtol yaw for stick_mixing"
__label__YES "stick_mixing was recently patched to disallow yaw inputs while in quadplane auto modes, however i hadn't realized that the same path was used for modes like `qstabilize` which meant qstab/qloiter/qland were all not seeing any pilot commanded yaw."
__label__YES "this patch currently takes the blacklist of what modes are not allowed to have pilot input when stick mixing is disabled, but we could invert it to be a whitelist if preferred."
__label__NO ">i'll be taking this out and flight testing this today."
__label__NO "checklist logging"
__label__NO "it would be very useful for the controller to store a checklist of start-up data (arming checks etc) at the beginning of any flight which could be uploaded to mission planner or tower and added to a more comprehensive manual checklist (user defined) and be easily printed."
__label__NO "i fly commercially and a good paper trail is important."
__label__NO "this would, at least partially, automate the process."
__label__NO "rc channel handling with mavlink overrides"
__label__YES "this is a cleanup with the handling of mavlink overrides that can cause garbage data to be consumed."
__label__NO ">there is a particular vehicle setup to make it happen: - do not use a rc receiver at all - send any form of mavlink rc input that doesn't provide a value for all the channels (a prime way to do this is `manual_control`)"
__label__NO ">the situation that arises is as follows: ."
__label__NO "the rc `control_in` and `radio_in` are both at from the initial reset ."
__label__NO "the gcs sends a `manual_control` message."
__label__NO "this message specified say the roll and throttle channels, and left the others as do not use."
__label__NO "this causes us to flag that we have new overrides."
__label__NO .
__label__NO "we call `read_input` which sees that we have new overrides so it polls all the channels to update themselves ."
__label__YES "the channels poll themselves, the ones with an override value happily just use that and update themselves, however for a channel that didn't have a value, such as say `pitch` what happens is they call the hal method to read the value for that channel, which has no way to flag it didn't have anything real."
